Version

WeakReferenceHelper<T> Class

Represents a list that store weak references to values. This list allows to store values while still allowing that the values can be reclaimed by garbage collection and avoid memory leaks.
Syntax
'Declaration
 
Public Class WeakReferenceHelper(Of T As Class) 
public class WeakReferenceHelper<T> 
where T: class
Type Parameters
T
Type of the values.
Remarks
If a value is added to the list and after that it is released by the garbage collector, it is removed from the list automatically when the it detects that the weak reference is dead.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also